using System;
using UnityEngine;

[Serializable]
public class SpriteAnimData
{
    [Tooltip("动画标识（如：run_left、idle_front）")]
    public string animKey;

    [Tooltip("图集名称（用于SpriteLoader）")]
    public string spriteName;

    [Tooltip("该动画包含的帧数")]
    public int frameCount;

    [Tooltip("每帧播放时长（秒）")]
    public float frameDuration = 0.1f;

    [Tooltip("该动画是否循环播放")]
    public bool loop = true;

    [HideInInspector]
    public Sprite[] cachedSprites; // 用于缓存加载的精灵帧，避免重复加载
}